package cn.com.bsoft.cloud.service.serviceImpl;

import cn.com.bsoft.cloud.dao.cloud.CloudAppDao;
import cn.com.bsoft.cloud.dao.healthweb.CloudHealthDao;
import cn.com.bsoft.cloud.service.CloudHealthService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.net.URI;
import java.util.List;

@Service
@Transactional(value="txManagerHealthWeb")
public class CloudHealthServiceImpl implements CloudHealthService{

    @Autowired
    private CloudHealthDao cloudHealthDao;

    @Autowired
    private CloudAppDao  cloudAppDao;

    @Override
    public List<String> queryExistMess(String cardNo,String hosCode) {
        List<String> liststr=cloudHealthDao.queryExistMess(cardNo,hosCode);
        return liststr;
    }

    @Override
    public Boolean insertFileurl(String yyid, URI uri) {
        return cloudAppDao.insertFileurl(yyid,uri.toString());
    }
}
